#include <iostream>
#define LENGTH 10
#define WIDTH 5
#define NEWLINE '\n'

using namespace std;

int main()
{
    cout << "======转义练习======" << endl;
    cout << "Hello\tWorld\n\n \\?: \?\t \\': \'  \n";

    cout << "======字符串常量======" << endl;

    string greeting = "hello, runoob";
    cout << greeting;
    cout << "\n"; //换行符
    //可以使用 \ 做分隔符，把一个很长的字符串常量进行分行。
    string greeting2 = "hello, \
                       runoob";
    cout << greeting2 << endl;

    cout << "" << endl;
    int area;

    area = LENGTH * WIDTH;
    cout << area;
    cout << NEWLINE << endl;

    //定义常量第二种方法
    const int LENGTHO = 10;
    const int WIDTHO = 5;
    const char NEWLINEO = '\n';

    area = LENGTHO * WIDTHO;
    cout << area << endl;
    cout << NEWLINEO << endl;

    return 0;
}